package com.baba.bracelet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/5 16:11
 * @description
 */
@Data
@TableName("tbl_reportPush")//@TableName中的值对应着表名
@ApiModel(value = "渠道对象")
public class ReportPushEntity {

    /**
     * 主键
     * @TableId中可以决定主键的类型,不写会采取默认值,默认值可以在yml中配置
     * AUTO: 数据库ID自增
     * INPUT: 用户输入ID
     * ID_WORKER: 全局唯一ID，Long类型的主键
     * ID_WORKER_STR: 字符串全局唯一ID
     * UUID: 全局唯一ID，UUID类型的主键
     * NONE: 该类型为未设置主键类型
     */
    @ApiModelProperty(value = "主键id", name = "id")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 渠道id
     */
    @ApiModelProperty(value = "渠道id",name = "channel_id")
    private String channelId;

    /**
     * 渠道名称
     */
    @ApiModelProperty(value = "渠道名称",name = "channel_name")
    private String channelName;

    /**
     * 策略执行beanId
     */
    @ApiModelProperty(value = "策略执行beanId",name = "strategy_bean_id")
    private String strategyBeanId;

}
